# from fenrispunk_tools.utils.toml import get_config


def get_tile_file() -> str:
    return "tiles.png"


def get_icon_file() -> str:
    return "logo32x32.png"


def get_map_file() -> str:
    return "map.txt"


def get_grid(gridfile: str = get_map_file()) -> list:
    foo = []
    with open(gridfile, "r") as inputfile:
        for line in inputfile:
            foo.append(list(line))
    return foo


def get_image(image_file: str) -> list:
    with open(image_file, "r") as inputfile:
        return [tuple(map(int, bar.split(","))) for bar in inputfile]


def get_screen_size_default() -> tuple:
    return (30 * get_sprite_length(), 24 * get_sprite_length())


def get_background_slug() -> tuple:
    return (100, 1, 1)


def get_frames_per_second() -> int:
    return 10  # get_config()["tiles"]["frames_per_second"]


def get_sprite_length() -> int:
    return 32  # get_config()["tiles"]["length"]


def get_window_caption() -> str:
    return "fenrispunk_tools mini-window"
